import request from '@/utils/request'
import qs from 'qs'

export function comment(params) {
  const data = {
    ...params
  }
  return request({
    url: '/merchant/comment/index',
    method: 'get',
    params: data
  })
}
export function detail(params) {
  const data = {
    ...params
  }
  return request({
    url: '/merchant/comment/detail',
    method: 'post',
    data: qs.stringify(data)
  })
}
export function reply(params) {
  const data = {
    ...params
  }
  return request({
    url: '/merchant/comment/reply',
    method: 'post',
    data: qs.stringify(data)
  })
}
export function display(params) {
  const data = {
    ...params
  }
  return request({
    url: '/merchant/comment/showStatus',
    method: 'post',
    data: qs.stringify(data)
  })
}
export function deleteComment(params) {
  const data = {
    ...params
  }
  return request({
    url: '/merchant/comment/del',
    method: 'post',
    data: qs.stringify(data)
  })
}
export function deleteAll(params) {
  const data = {
    ...params
  }
  return request({
    url: '/merchant/comment/batchDel',
    method: 'post',
    data: qs.stringify(data)
  })
}
